<include file="Public/header" title="编辑方案类型" />
<div id="page-wrapper">
    <form method="post" action="{:U('solution/update')}">
        <input type="hidden" name="solution_id" value="{$info.id}">
        <div class="form-group">
            <label for="aa">方案中文名</label>
            <input type="text" name="zh_name" class="form-control" id="aa" placeholder="输入方案中文名" value="{$info.zh_name}">
        </div>
        <div class="form-group">
            <label for="aa">方案英文名</label>
            <input type="text" name="en_name" class="form-control" id="aa" placeholder="输入方案英文名" value="{$info.en_name}">
        </div>
        <div class="form-group">
            <label for="bb">主方案</label>
            <select name="pid" id="bb" class="form-control">
                <option value="0" <if condition="$info[pid] lt 1"> selected</if>>顶级方案</option>
                <foreach name="cate" item="v">
                    <option value="{$v.id}" <if condition="$info[pid] eq $v[id]"> selected</if>>{$v.zh_name} [{$v.en_name}]</option>
                </foreach>
            </select>
        </div>
        <div class="form-group">
            <label for="cc">图标</label>
            <input type="text" name="icon" class="form-control" id="cc" placeholder="图标名" value="{$info.icon}">
        </div>
        <div class="form-group">
            <label>状态</label>
            <label class="radio-inline">
                <input type="radio" name="status" id="status" value="-1">删除
            </label>
            <label class="radio-inline">
                <input type="radio" name="status" id="status" value="0" <if condition="$info[status] eq 0"> checked="checked" </if>>不启用
            </label>
            <label class="radio-inline">
                <input type="radio" name="status" id="status" value="1" <if condition="$info[status] eq 1"> checked="checked" </if>>启用
            </label>
        </div>
        <button type="submit" class="btn btn-primary">添加</button>
        <a href="{:U('solution/index')}" class="btn btn-default">返回列表</a>
    </form>
</div>
<include file="Public/footer" />